Thumbs VDS Commands:

** Note: Example of all commands are in the democombo.dsp demo.


 -------- Important! ---------------------
 The DLLS always needs to be in the same directory of your VDS app (EXE)
 The DLLs dont like to be forced to load from another directory than the one your EXE is. Adding a @path(%0) in front with cause an Error 42 if the EXE is a folder containing a "."


Commands:

::::::
Class
::::::
This commands needs to be called before anything else. This tells the DLL on what app is needs to draw the thumbs object.

thumbs class,<class name of your VDS app>

Do not add '#' for the class name with this command

:::
ADD
:::
This will create and show the thumbs object on your VDS app form

thumbs add,<top>,<left>,<hsize>,<vsize>


:::::::::::::
SetDirectory
:::::::::::::
Sets the directory to the plugin of where to read the images from
 
thumbs setdirectory,<directory path>
 
:::::::::::::
SetGridSpace
:::::::::::::
Sets how many image colums will display

Example:
thumbs numberofgrid,2

:::::::::::::::::::
bkcolor
:::::::::::::::::::
Sets the overall background color of the plugin R,G,B. ex: 255,255,255

Example:
thumbs bkcolor,255,255,255

:::::::::::::::::::::
selectorcolor
:::::::::::::::::::::
Sets the color of the selection border around the selected image.
Example:
thumbs selectorcolor,0,0,0

:::::::::::::::::
TextColor
:::::::::::::::::
Sets the text color if 'ShowImageName' is used. R,G,B
Example:
thumbs textcolor,0,0,0

::::::::::::::
vdscaption
::::::::::::::
Tells the thumbs DLL the windowtitle, mainly for the event handler of the thumbs.
This also shows the use of the @thumbs(selected) function

Example:
  %%WindowTitle = "eXtremeSenses Thumbnail viewer - Prototype"
  thumbs vdscaption,%%windowtitle
  #Sets the Hotkey to receive events from the thumbs DLL
  #There is no other way to generate this event unfortunatly
  thumbs sethotkey,ctrl,alt,t
  :Hotkey
  #Thumb selected
  %%selected = @thumbs(selected)
  info %%selected
  goto evloop 

::::
Show
::::
Shows the thumbs object
 
thumbs show
 
::::
Hide
::::
Hides the thumbs object
 
thumbs hide

::::::::::::::
ShowImageName
::::::::::::::
Show the filename of the image without the extention. 

thumbs showthumbstext,<1 = enable or 0 = disable>

::::::::::::::
gridspacevert
::::::::::::::
Sets the vertical spacing between the thumbnails.

Example
thumbs gridspacevert,5

::::::::::::::
gridspacehoriz
::::::::::::::
Sets the horizontal spacing between thumbnails. 

Example:
thumbs gridspacehoriz,4

::::::::::::::
SetThumbSize 
::::::::::::::
Sets the Width(W) and Height(H) ex:(200,100) of the thumbnails 
to be displayed... 

Example:
thumbs SetThumbSize,200,200

Function:

:::::::::::::::::
@thumbs(selected)
:::::::::::::::::
This function returns the seleted images path and filename.
See the VDSCAPTION command for addional info or see the democombo.dsp
  
info @thumbs(selected)
